package com.wans.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wans.guli.common.utils.PageUtils;
import com.wans.guli.product.entity.AttrGroupEntity;
import com.wans.guli.product.vo.AttrAttrgroupRelationRestVO;
import com.wans.guli.product.vo.AttrRespVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wans
 * @email wansconst@163.com
 * @date 2025-08-01 15:14:35
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCatId(Long catId,Map<String, Object> params);

    AttrGroupEntity getInfoById(Long attrGroupId);

    List<AttrRespVO> getAttrByGroupId(Long groupId);

    void deleteAttrRelation(List<AttrAttrgroupRelationRestVO> relationRestVOS);

    PageUtils notRelationAttrByGroupId(Long groupId, Map<String, Object> params);

    void saveBatchRelation(List<AttrAttrgroupRelationRestVO> relationRestVOS);
}

